home *** CD-ROM | disk | FTP | other *** search
- ; PSPad clip definition file for CAL (Navision)
- ; created by pspad 12.07.2002 09:10
- ; author: martinpa
- [Macro definition]
- %recordset%=@E Enter recodset
- %recordset1%=@E Enter recodset
- %prom%=@E Variable
- %prom1%=@E Variable
- %prom2%=@E Variable
- %dialog%=@E Dialog
- %ComboFind%=@C Which record:,,-,-;+,'
- ;--------------------------------------------------------------------------------
- [for .. to .. do | cycle with defined step count]
- for %prom% := %prom1% to %prom2% do
- begin
- |
- end;
- ;--------------------------------------------------------------------------------
- [setrange | set range(what, from, to) ]
- %recordset%.setrange(%recordset%."|" , , );
- ;--------------------------------------------------------------------------------
- [get | get(variable)]
- if %recordset%.get(|) then
- ;--------------------------------------------------------------------------------
- [begin | (begin ... end) ]
- begin
- º|
- end
- ;--------------------------------------------------------------------------------
- [repeat | (recordset fetching)]
- repeat
- |
- until %recordset%.next=0;
- ;--------------------------------------------------------------------------------
- [if | (condition)]
- if º| then
-
- ;--------------------------------------------------------------------------------
- [calcfields | calcfields(array, .., ..)]
- %recordset%.calcfields (|);
- ;--------------------------------------------------------------------------------
- [message | message(text)]
- message(º|);
- ;--------------------------------------
- [message2 | message(format(integer))]
- message(format(º|));
- ;--------------------------------------------------------------------------------
- [confirm | confirm(text)]
- if %prom% confirm(|) then
-
- ;--------------------------------------------------------------------------------
- [setfilter | setfilter(what,value)]
- %recordset%.setfilter(| , ) ;
- ;--------------------------------------------------------------------------------
- [create | create(object)]
- create (º|);
- ;--------------------------------------------------------------------------------
- [clear | clear(object)]
- clear (º|) ;
- ;--------------------------------------------------------------------------------
- [createtotals | createtotals(array)]
- Currreport.createtotals(º|)
- ;--------------------------------------------------------------------------------
- [testfield | testfield(array,value)]
- %recordset%.testfield(|)
- ;--------------------------------------------------------------------------------
- [round | round(value,decimal)]
- round(º| , )
- ;--------------------------------------------------------------------------------
- [format | format(variable)]
- format(º|)
- ;--------------------------------------------------------------------------------
- [count | recordset.count]
- %recordset%.count
- ;--------------------------------------------------------------------------------
- [setcurrentkey | recordset.setcurrentkey]
- %recordset%.setcurrentkey(|);
- ;--------------------------------------------------------------------------------
- [find | find('-')]
- if %recordset%.find(%ComboFind%) then
- |
- ;--------------------------------------------------------------------------------
- [reset | recordset.reset]
- %recordset%.reset;
- |
- ;--------------------------------------------------------------------------------
- [d.Open | okno.open('text #1#######', variable]
- %dialog%.open(|)
- ;--------------------------------------------------------------------------------
- [d.Update | okno.open(1, variable]
- %dialog%|.update()
- ;--------------------------------------------------------------------------------
- [d.Close | okno.Close
- %dialog%|.Close
- ;--------------------------------------------------------------------------------
- [DATE2DMY | Date2DMY(date)]
- date2SMY(º|)
- ;--------------------------------------------------------------------------------
- [Commit| Commit]
- Commit
- ;-------------------------------------------------------------------------------
- [error| error()]
- error(º|);
- ;
- [TRANSFERFIELDS | rsDestination.TRANSFERFIELDS(rsSource)]
- %recordset%.TRANSFERFIELDS(%recordset1%)